<?php
include_once($project_path.'/class/ext/smarty/Smarty.class.php');

class fwSmarty extends Smarty
{

	function __construct()
	{
		global $project_path;
		parent::__construct();

		$this->template_dir = $project_path.'/view/screen/';
		$this->compile_dir = $project_path.'/cache/smarty/template_c/';
		$this->cache_dir = $project_path.'/cache/smarty/cache/';

		$this->caching = 0;
	}
	
	public function getContents($resource_name)
	{
		ob_start();
		$this->display($resource_name);
		$output = ob_get_contents();
		ob_end_clean();
		return $output;
	}

}
?>